package com.rdxer.model;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Data
@Table
@AllArgsConstructor
@NoArgsConstructor
@Builder
// 试题表
public class Question {
    @Id
    @Column(length = 100)
    private String id;
    @Column(length = 100)
    private String userId;

    @Column(length = 200)
    private String type;
    @Column(length = 200)
    private String detail;
    @Column(length = 200)
    private String level;
    @Column(length = 200)
    private String tags;
    @Column(length = 200)
    private String resolve;
    @Column(length = 200)
    private String answerContent;
    private Double score;

    private Boolean isTemplate;


    public enum Type {
        /** 单选 */
        Single,
        /** 多选 */
        Multi,//
        /** 判断 */
        Judge,
        /** 填空 */
        Completion,
        /** 简答 */
        FreeResponse
    }
}
